package Person;

import System.IOperation;

import java.sql.SQLException;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 38917
 * Date: 2025-02-03
 * Time: 02:24
 */
public abstract class User {
    protected String name;
    public IOperation[] iOperations;

    public User(String name){
        this.name = name;
    }

    public abstract int menu();//被重写


    public void doOperation(int choice) throws SQLException {
        iOperations[choice].work();
    }
}
